﻿using Kingdee.BOS.Core.Metadata;
using Kingdee.BOS.Core.Report.PlugIn;
using Kingdee.BOS.Core.Report.PlugIn.Args;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PMAF.K3Cloud.SCM.Report.BusinessPlugIn
{
    [HotUpdate]
    [Description("采销多空单报表表单插件")]
    public class PurSalOrder : AbstractSysReportPlugIn
    {
        public override void OnFormatRowConditions(ReportFormatConditionArgs args)
        {
            base.OnFormatRowConditions(args);

            //偶数行加颜色
            if (Convert.ToInt32(args.DataRow["FIDENTITYID"]) % 2 == 0)
            {
                FormatCondition fRow_FC = new FormatCondition()
                {
                    BackColor = "#E8E8E8",
                };
                args.FormatConditions.Add(fRow_FC);
            }
        }
    }
}
